package com.example.demo.instance;

/**
 * @Author daFa
 * @create 2019/3/12 9:35
 */
public class OddNumber1ServiceImpl implements OddNumberService {
    /**
     * 是否奇数
     *
     * @param i
     * @return
     */
    @Override
    public boolean isOdd(int i) {
        if (i % 2 == 1) {
            System.out.println("是奇数");
            return true;
        } else {
            System.out.println("是偶数");
            return false;
        }
    }

}
